package com.flexfiltering.view.events
{
	import flash.events.Event;

	public class TokenFieldEvent extends Event
	{
		public static const CARAT_INDEX_CHANGE:String = "caratIndexChange";
		
		public static const TOKENIZE:String = "tokenize";
		
		public var oldLocation:int;
		public var location:int;
		public var text:String;
		public var keyCode:int;
		
		public function TokenFieldEvent( type:String,
										 bubbles:Boolean=false, 
										 cancelable:Boolean=false,
										 location:int=0,
										 oldLocation:int=0,
										 text:String=null,
										 keyCode:int=0 )
		{
			super(type, bubbles, cancelable);
			
			this.location = location;
			this.oldLocation = oldLocation;
			this.text = text;
			this.keyCode = keyCode;
		}
		
	}
}